package cn.iocoder.yudao.module.ride.controller.admin.ruledict.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 规则字典新增/修改 Request VO")
@Data
public class RuleDictSaveReqVO {

    @Schema(description = "规则ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27555")
    private Integer id;

    @Schema(description = "规则类型(1-会员等级规则,2-黑名单规则)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "规则类型(1-会员等级规则,2-黑名单规则)不能为空")
    private Integer ruleType;

    @Schema(description = "规则编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "规则编码不能为空")
    private String ruleCode;

    @Schema(description = "规则名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "规则名称不能为空")
    private String ruleName;

    @Schema(description = "规则值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "规则值不能为空")
    private String ruleValue;

    @Schema(description = "规则描述")
    private String ruleDesc;

    @Schema(description = "排序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序号不能为空")
    private Integer sortOrder;

    @Schema(description = "是否启用(0-否,1-是)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用(0-否,1-是)不能为空")
    private Integer isEnabled;

}